﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Bary</title>
<!--Script and CSS includes for YUI dependencies on this page-->
<link rel="stylesheet" type="text/css" href="Resource/yui/build/tabview/assets/skins/sam/tabview.css" />
<link rel="stylesheet" type="text/css" href="Resource/yui/build/button/assets/skins/sam/button.css" />
<link rel="stylesheet" type="text/css" id="css" href="Resource/css/main.css">
<link rel="stylesheet" type="text/css" id="css" href="Resource/css/css.css">
<link rel="stylesheet" type="text/css" id="css" href="Resource/css/good.css">
<script type="text/javascript" src="Resource/yui/build/yuiloader/yuiloader-beta-min.js"></script>
<script type="text/javascript" src="Resource/yui/build/event/event-min.js"></script>
<script type="text/javascript" src="Resource/yui/build/dom/dom-min.js"></script>
<script type="text/javascript" src="Resource/yui/build/element/element-beta-min.js"></script>
<script type="text/javascript" src="Resource/yui/build/tabview/tabview-min.js"></script>
<script type="text/javascript" src="Resource/yui/build/button/button-min.js"></script>
<script language="JavaScript" type="text/JavaScript" src="Resource/js/cs.js"></script>
<script language="JavaScript" type="text/JavaScript" src="Resource/js/core.js"></script>
</head>
<%
	String goodId = request.getParameter("good_id");
	String colorId = request.getParameter("color_id");
	String upper = request.getParameter("upper");
	String size = request.getParameter("size");
	String qty = request.getParameter("qty");
%>

<script language="javascript" >

	
	function returnBack(){
		location.href = "manageHold.do?good_id=<%=goodId%>&color_id=<%=colorId%>";
	}
	
	function update(){
		//alert(document.allGood.action);
		document.allGood.submit();
	}
	
	
	</script>
	
<body id="yahoo-com" class=" yui-skin-sam">

  <div id="framed">
    <h2>修改库存</h2>
  </div>
  <div>
  	<form action="updateAHold.do" name="allGood" method="post">
          <div class="line_pubForm">
            <table width="100%" style="tabSty">
            	<tr>
                <td width=120 align=right>商品简称：</td>
                <td align=left><input type="text" id="sname" name="goodId" value="<%=goodId%>" class="iptSty" readonly="true">
                  &nbsp;&nbsp; 
              </tr>
              <tr>
                <td width=120 align=right>版色简称：</td>
                <td align=left><input type="text" name="colorId" value="<%=colorId%>" class="iptSty" readonly="true" />
                  &nbsp;&nbsp; 
              </tr>
              
              <tr>
                <td width=120 align=right>尺码：</td>
                <td align=left><input type="text" name="size" value="<%=size%>" class="iptSty" readonly="true" />
                  &nbsp;&nbsp; 
              </tr>
              
              <tr>
                <td width=120 align=right>上架数量：</td>
                <td align=left><input type="text" name="upper" value="<%=upper%>" class="iptSty"  />
                  &nbsp;&nbsp; 
              </tr>
              
              <tr>
                <td width=120 align=right>库存数量：</td>
                <td align=left><input type="text" name="holder" value="<%=qty%>" class="iptSty"  />
                  &nbsp;&nbsp; 
              </tr>
              
              
              <tr>
                <td width=120 align=right><input type="button" value="修改" onclick="update()" /></td>
                <td align=left><input type="button" onclick="returnBack()" value="返回" />
                  &nbsp;&nbsp; 
              </tr>
            </table>
            
          </div>
          
		</form>

  </div>
</body>
</html>
